package com.shen.pojo.instruments;

/**
 * Author:shen
 * CreateDate:2020/5/13.
 * Function:
 */
public class Tuner {
    public void TestInstruments(Object object){
        if(object instanceof Piano){
            ((Piano) object).play();
        }else if(object instanceof Violin){
            ((Violin) object).play();
        }else if(object instanceof Guzheng){
            ((Guzheng) object).play();
        }
    }
}
